using UnityEngine;
using System.Collections;

public class LinearMover : MonoBehaviour
{
	public	float					m_fSpeed;
	public	float					m_fRotSpeed;
	public	SidescrollGameplayArea	m_sgaGameplayArea;
	
	
	void Update ()
	{
		m_sgaGameplayArea.transform.Translate(m_fSpeed* Time.deltaTime, 0.0f, 0.0f);		
		m_sgaGameplayArea.transform.Rotate(0.0f,0.0f,m_fRotSpeed * Time.deltaTime);
		
		
		// DBG
		if(Input.GetButtonDown("Fire2"))
		{
			m_sgaGameplayArea.DeattachBullets();
		}
	}
}

